package com.bawei.lib_storage.mmkv



import com.tencent.mmkv.MMKV

/**
 *作者：lxy
 *功能:
 *时间：2025/5/25
 */
object AuthMMKV : MMKVOwner {

    //  MMKV实例 auth文件中
    override val mmkv: MMKV
        get() = MMKV.mmkvWithID("auth")

    //token
    var token by MMKVProperty("")

    //uId
    var uId by MMKVProperty(0)
    //username
    var username by MMKVProperty("")
    //password
    var password by MMKVProperty("")
    //判断是否点过赞
    var hasLike by MMKVProperty(0)
    //判断是否收藏
    var hasCollection by MMKVProperty(0)
    //视频详情文本
    var videoDetailText by MMKVProperty("")
    //视频详情ID
    var videoDetailId by MMKVProperty("")
    //视频详情下标
    var videoDetailIndex by MMKVProperty(0)
    //账户id
    var accountId by MMKVProperty(0)
    //首页金额
    var homeMoney by MMKVProperty(0)
    //放映厅金额
    var hallMoney by MMKVProperty(0)
    //直播金额
    var liveMoney by MMKVProperty(0)

    fun hasLogin() = token.isNotEmpty()
}